// import request from '../utils/request'
// import config from '../config'

// export function login(data) {
//     return request.post('/admin/login', data)
// }
// export function getCategoryList() {
//     return request.get('/admin/category/list')
// }
// export function getCategory(params) {
//     return request.get('/admin/category', { params })

// }
// export function addCategory(data) {
//     return request.post('/admin/category/add', data)

// }
// export function editCategory(data) {
//     return request.post('/admin/category/save', data)
// }
// export function delCategory(data) {
//     return request.post('/admin/category/del', data)
// }


import request from '../utils/request'
import config from '../config'

export function login(data) {
    return request.post('/admin/login', data)
}

export function getCategoryList() {
    return request.get("/admin/category/list")
}
export function getCategory(params) {
    return request.get("/admin/category", { params })
}

export function addCategory(data) {

    return request.post("/admin/category/add", data)
}


export function editCategory(data) {
    return request.post("/admin/category/save", data)
}


export function delCategory(data) {
    return request.post("/admin/category/del", data)
}